package com.jwt.demo.util;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * @author 林武杰
 * @date 2021/10/12 15:17
 */
@Slf4j
public class CustomException extends RuntimeException{

    public CustomException(String message){
        super(message);
    }

    public CustomException(){
        super("系统异常");
    }
}
